package com.matace.keychain.data;

import android.content.Context;
import com.matace.keychain.domain.TermsUseCase;
import com.matace.keychain.R;

public class TermsRepositoryImpl implements TermsUseCase {
    private final Context context;
    private boolean agreed = false;

    public TermsRepositoryImpl(Context context) {
        this.context = context;
    }

    @Override
    public String getTermsText() {
        return context.getString(R.string.terms_text);
    }

    @Override
    public void agreeTerms() {
        agreed = true;
        // 可扩展：如保存同意状态到本地
    }

    public boolean isAgreed() {
        return agreed;
    }
}